<template>
    <div>
        <button @click="created()">点击</button>
    </div>
</template>
<script>
import axios from "axios";
export default {
    data() {
        return {};
    },
    methods: {
        async created() {
            console.log("开始请请求了");
            let data = await axios.get("/ratings");
            console.log(data);
        },
    },
};
</script>
